[INFO] cloning repository https://github.com/kmeisthax/awsmimg
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kmeisthax/awsmimg" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmeisthax%2Fawsmimg", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmeisthax%2Fawsmimg'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 142fff272fc361fb65dabf5d81912d8580fa27b1
[INFO] building kmeisthax/awsmimg against master#ff34b919075f35a1787659e9c448a34b06bab8de for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkmeisthax%2Fawsmimg" "/workspace/builds/worker-1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/kmeisthax/awsmimg on toolchain ff34b919075f35a1787659e9c448a34b06bab8de
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/kmeisthax/awsmimg
[INFO] finished tweaking git repo https://github.com/kmeisthax/awsmimg
[INFO] tweaked toml for git repo https://github.com/kmeisthax/awsmimg written to /workspace/builds/worker-1/source/Cargo.toml
[INFO] crate git repo https://github.com/kmeisthax/awsmimg already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] d44d29e431bb7a5207c4fce239f78fe9e5d6ff45fa8a7f4a0bf5d27b8cf1ff2a
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "d44d29e431bb7a5207c4fce239f78fe9e5d6ff45fa8a7f4a0bf5d27b8cf1ff2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d44d29e431bb7a5207c4fce239f78fe9e5d6ff45fa8a7f4a0bf5d27b8cf1ff2a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d44d29e431bb7a5207c4fce239f78fe9e5d6ff45fa8a7f4a0bf5d27b8cf1ff2a", kill_on_drop: false }`
[INFO] [stdout] d44d29e431bb7a5207c4fce239f78fe9e5d6ff45fa8a7f4a0bf5d27b8cf1ff2a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1883d76224dab94cb6f5b15663250337ef8c22bf7e5bd17a6dc416ce587a2361
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "1883d76224dab94cb6f5b15663250337ef8c22bf7e5bd17a6dc416ce587a2361", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.5
[INFO] [stderr]    Compiling num-integer v0.1.39
[INFO] [stderr]    Compiling nodrop v0.1.12
[INFO] [stderr]    Compiling cfg-if v0.1.4
[INFO] [stderr]    Compiling lazy_static v1.0.1
[INFO] [stderr]    Compiling memoffset v0.2.1
[INFO] [stderr]    Compiling libc v0.2.42
[INFO] [stderr]    Compiling scopeguard v0.3.3
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling num-iter v0.1.37
[INFO] [stderr]    Compiling rayon-core v1.4.0
[INFO] [stderr]    Compiling adler32 v1.0.3
[INFO] [stderr]    Compiling byteorder v1.2.3
[INFO] [stderr]    Compiling num-bigint v0.2.0
[INFO] [stderr]    Compiling either v1.5.0
[INFO] [stderr]    Compiling num-complex v0.2.0
[INFO] [stderr]    Compiling num-rational v0.2.1
[INFO] [stderr]    Compiling bitflags v1.0.3
[INFO] [stderr]    Compiling lzw v0.10.0
[INFO] [stderr]    Compiling color_quant v1.0.1
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling argparse v0.2.1
[INFO] [stderr]    Compiling crossbeam-utils v0.2.2
[INFO] [stderr]    Compiling arrayvec v0.4.7
[INFO] [stderr]    Compiling inflate v0.4.3
[INFO] [stderr]    Compiling proc-macro2 v0.4.6
[INFO] [stderr]    Compiling gif v0.10.0
[INFO] [stderr]    Compiling deflate v0.7.18
[INFO] [stderr]    Compiling crossbeam-epoch v0.3.1
[INFO] [stderr]    Compiling quote v0.6.3
[INFO] [stderr]    Compiling rand v0.4.2
[INFO] [stderr]    Compiling num_cpus v1.8.0
[INFO] [stderr]    Compiling syn v0.14.4
[INFO] [stderr]    Compiling crossbeam-deque v0.2.0
[INFO] [stderr]    Compiling num-rational v0.1.42
[INFO] [stderr]    Compiling png v0.12.0
[INFO] [stderr]    Compiling rayon v1.0.1
[INFO] [stderr]    Compiling num v0.2.0
[INFO] [stderr]    Compiling num-derive v0.2.2
[INFO] [stderr]    Compiling jpeg-decoder v0.1.15
[INFO] [stderr]    Compiling image v0.19.0
[INFO] [stderr]    Compiling awsmimg v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/conversion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GenericImage`, `Pixel`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use image::{GenericImage, ImageBuffer, Primitive, Pixel, LumaA};
[INFO] [stdout]   |             ^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |         if (bytes_needed == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 |         if (bytes_read == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout] 175 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |         if (self.initialized == false) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:378:20
[INFO] [stdout]     |
[INFO] [stdout] 378 |                 if (self.frequency.len() < symbol) {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]   --> src/awsmimg/formats/agb.rs:84:62
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]    |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:105:13
[INFO] [stdout]     |
[INFO] [stdout] 105 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:157:62
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]     |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:178:13
[INFO] [stdout]     |
[INFO] [stdout] 178 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `readbytes2`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:94:13
[INFO] [stdout]    |
[INFO] [stdout] 94 |         let readbytes2 = self.r.read(&mut rawtree.get_mut(0..treesize).unwrap())?;
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readbytes2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `bytes_read` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         let mut bytes_read = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:300:44
[INFO] [stdout]     |
[INFO] [stdout] 300 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:301:42
[INFO] [stdout]     |
[INFO] [stdout] 301 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:304:44
[INFO] [stdout]     |
[INFO] [stdout] 304 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:305:42
[INFO] [stdout]     |
[INFO] [stdout] 305 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:319:44
[INFO] [stdout]     |
[INFO] [stdout] 319 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:320:42
[INFO] [stdout]     |
[INFO] [stdout] 320 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:323:44
[INFO] [stdout]     |
[INFO] [stdout] 323 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:324:42
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastnode` is assigned to, but never used
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:402:17
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let mut lastnode = 0;
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_lastnode` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `lastnode` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:431:21
[INFO] [stdout]     |
[INFO] [stdout] 431 |                     lastnode = newpos;
[INFO] [stdout]     |                     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut iw;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let mut ih;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:110:13
[INFO] [stdout]     |
[INFO] [stdout] 110 |         let mut lnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:111:13
[INFO] [stdout]     |
[INFO] [stdout] 111 |         let mut rnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     fn new(r: &'a mut R) -> AGBHuffmanDecompressor<'a, R> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:280:12
[INFO] [stdout]     |
[INFO] [stdout] 280 |     pub fn new(w: &'a mut W, bits_per_symbol: u8) -> AGBHuffmanCompressor<'a, W> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `serialize_huffman_tree`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:292:8
[INFO] [stdout]     |
[INFO] [stdout] 292 |     fn serialize_huffman_tree(&self, tree: &AGBHuffmanTree) -> Vec<u8> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `write_huffman_header`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:339:8
[INFO] [stdout]     |
[INFO] [stdout] 339 |     fn write_huffman_header(&mut self, rootnode: usize) -> io::Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 33 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/conversion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GenericImage`, `Pixel`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use image::{GenericImage, ImageBuffer, Primitive, Pixel, LumaA};
[INFO] [stdout]   |             ^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |         if (bytes_needed == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 |         if (bytes_read == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout] 175 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |         if (self.initialized == false) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:378:20
[INFO] [stdout]     |
[INFO] [stdout] 378 |                 if (self.frequency.len() < symbol) {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `StoreFalse`, `StoreTrue`
[INFO] [stdout]  --> src/decode.rs:7:39
[INFO] [stdout]   |
[INFO] [stdout] 7 | use argparse::{ArgumentParser, Store, StoreFalse, StoreTrue};
[INFO] [stdout]   |                                       ^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `interpret_direct_format_name`
[INFO] [stdout]   --> src/decode.rs:12:55
[INFO] [stdout]    |
[INFO] [stdout] 12 | use awsmimg::formats::{interpret_indexed_format_name, interpret_direct_format_name};
[INFO] [stdout]    |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/conversion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GenericImage`, `Pixel`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use image::{GenericImage, ImageBuffer, Primitive, Pixel, LumaA};
[INFO] [stdout]   |             ^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |         if (bytes_needed == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 |         if (bytes_read == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout] 175 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |         if (self.initialized == false) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:378:20
[INFO] [stdout]     |
[INFO] [stdout] 378 |                 if (self.frequency.len() < symbol) {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]   --> src/awsmimg/formats/agb.rs:84:62
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]    |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:105:13
[INFO] [stdout]     |
[INFO] [stdout] 105 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:157:62
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]     |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:178:13
[INFO] [stdout]     |
[INFO] [stdout] 178 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `readbytes2`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:94:13
[INFO] [stdout]    |
[INFO] [stdout] 94 |         let readbytes2 = self.r.read(&mut rawtree.get_mut(0..treesize).unwrap())?;
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readbytes2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `bytes_read` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         let mut bytes_read = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:300:44
[INFO] [stdout]     |
[INFO] [stdout] 300 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:301:42
[INFO] [stdout]     |
[INFO] [stdout] 301 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:304:44
[INFO] [stdout]     |
[INFO] [stdout] 304 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:305:42
[INFO] [stdout]     |
[INFO] [stdout] 305 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:319:44
[INFO] [stdout]     |
[INFO] [stdout] 319 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:320:42
[INFO] [stdout]     |
[INFO] [stdout] 320 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:323:44
[INFO] [stdout]     |
[INFO] [stdout] 323 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:324:42
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastnode` is assigned to, but never used
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:402:17
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let mut lastnode = 0;
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_lastnode` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `lastnode` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:431:21
[INFO] [stdout]     |
[INFO] [stdout] 431 |                     lastnode = newpos;
[INFO] [stdout]     |                     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut iw;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let mut ih;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:110:13
[INFO] [stdout]     |
[INFO] [stdout] 110 |         let mut lnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:111:13
[INFO] [stdout]     |
[INFO] [stdout] 111 |         let mut rnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `indexes_from_luma`
[INFO] [stdout]   --> src/awsmimg/conversion.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn indexes_from_luma<I, P, S>(image: &I, maxcol: S, tsize: (u32, u32)) -> Vec<S>
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `encode_image_as_indexes`
[INFO] [stdout]   --> src/awsmimg/encoder.rs:47:8
[INFO] [stdout]    |
[INFO] [stdout] 47 | pub fn encode_image_as_indexes<'a, E, I, P, S>(enc: &mut E, image: &I) -> io::Result<()> where I: GenericImage<Pixel=P>, P: Pixel<Subpixe...
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `encode_image_as_indexes_with_format`
[INFO] [stdout]   --> src/awsmimg/encoder.rs:61:8
[INFO] [stdout]    |
[INFO] [stdout] 61 | pub fn encode_image_as_indexes_with_format<'a, W, I, P, S>(format: IndexedFormat, w: &mut W, image: &I) -> io::Result<()> where I: Generi...
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `encode_image_as_direct_color_with_format`
[INFO] [stdout]    --> src/awsmimg/encoder.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | pub fn encode_image_as_direct_color_with_format<'a, W, I, P, S>(format: DirectFormat, w: &mut W, image: &I) -> io::Result<()> where I: Ge...
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new_agb`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:198:12
[INFO] [stdout]     |
[INFO] [stdout] 198 |     pub fn new_agb(write: &'a mut W) -> AGB16Encoder<'a, W> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new_ntr`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:205:12
[INFO] [stdout]     |
[INFO] [stdout] 205 |     pub fn new_ntr(write: &'a mut W) -> AGB16Encoder<'a, W> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum is never used: `DirectFormat`
[INFO] [stdout]   --> src/awsmimg/formats/mod.rs:58:10
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub enum DirectFormat {
[INFO] [stdout]    |          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `interpret_direct_format_name`
[INFO] [stdout]   --> src/awsmimg/formats/mod.rs:63:8
[INFO] [stdout]    |
[INFO] [stdout] 63 | pub fn interpret_direct_format_name(fmt_given: &str) -> Option<DirectFormat> {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     fn new(r: &'a mut R) -> AGBHuffmanDecompressor<'a, R> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:280:12
[INFO] [stdout]     |
[INFO] [stdout] 280 |     pub fn new(w: &'a mut W, bits_per_symbol: u8) -> AGBHuffmanCompressor<'a, W> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `serialize_huffman_tree`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:292:8
[INFO] [stdout]     |
[INFO] [stdout] 292 |     fn serialize_huffman_tree(&self, tree: &AGBHuffmanTree) -> Vec<u8> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `write_huffman_header`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:339:8
[INFO] [stdout]     |
[INFO] [stdout] 339 |     fn write_huffman_header(&mut self, rootnode: usize) -> io::Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]   --> src/awsmimg/formats/agb.rs:84:62
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]    |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:105:13
[INFO] [stdout]     |
[INFO] [stdout] 105 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:157:62
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]     |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:178:13
[INFO] [stdout]     |
[INFO] [stdout] 178 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `readbytes2`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:94:13
[INFO] [stdout]    |
[INFO] [stdout] 94 |         let readbytes2 = self.r.read(&mut rawtree.get_mut(0..treesize).unwrap())?;
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readbytes2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `bytes_read` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         let mut bytes_read = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:300:44
[INFO] [stdout]     |
[INFO] [stdout] 300 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:301:42
[INFO] [stdout]     |
[INFO] [stdout] 301 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:304:44
[INFO] [stdout]     |
[INFO] [stdout] 304 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:305:42
[INFO] [stdout]     |
[INFO] [stdout] 305 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:319:44
[INFO] [stdout]     |
[INFO] [stdout] 319 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:320:42
[INFO] [stdout]     |
[INFO] [stdout] 320 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:323:44
[INFO] [stdout]     |
[INFO] [stdout] 323 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:324:42
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastnode` is assigned to, but never used
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:402:17
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let mut lastnode = 0;
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_lastnode` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `lastnode` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:431:21
[INFO] [stdout]     |
[INFO] [stdout] 431 |                     lastnode = newpos;
[INFO] [stdout]     |                     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut iw;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let mut ih;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:110:13
[INFO] [stdout]     |
[INFO] [stdout] 110 |         let mut lnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:111:13
[INFO] [stdout]     |
[INFO] [stdout] 111 |         let mut rnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `luma_from_indexes`
[INFO] [stdout]   --> src/awsmimg/conversion.rs:77:8
[INFO] [stdout]    |
[INFO] [stdout] 77 | pub fn luma_from_indexes<'a, S>(data: Vec<S>, maxcol: u16, tsize: (u32, u32), isize: Option<(u32, u32)>) -> Option<Box<ImageBuffer<LumaA<...
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `decode_indexes_as_image`
[INFO] [stdout]   --> src/awsmimg/decoder.rs:42:8
[INFO] [stdout]    |
[INFO] [stdout] 42 | pub fn decode_indexes_as_image<'a, E>(enc: &mut E, size: usize, isize: Option<(u32, u32)>) -> io::Result<Box<ImageBuffer<LumaA<u8>, Vec<u...
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function is never used: `decode_indexes_as_image_with_format`
[INFO] [stdout]   --> src/awsmimg/decoder.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 58 | pub fn decode_indexes_as_image_with_format<'a, R>(format: IndexedFormat, r: &mut R, size: usize, imgsize: Option<(u32, u32)>) -> io::Resu...
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     fn new(r: &'a mut R) -> AGBHuffmanDecompressor<'a, R> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:280:12
[INFO] [stdout]     |
[INFO] [stdout] 280 |     pub fn new(w: &'a mut W, bits_per_symbol: u8) -> AGBHuffmanCompressor<'a, W> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `serialize_huffman_tree`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:292:8
[INFO] [stdout]     |
[INFO] [stdout] 292 |     fn serialize_huffman_tree(&self, tree: &AGBHuffmanTree) -> Vec<u8> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `write_huffman_header`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:339:8
[INFO] [stdout]     |
[INFO] [stdout] 339 |     fn write_huffman_header(&mut self, rootnode: usize) -> io::Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 43 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 36 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 24.60s
[INFO] running `Command { std: "docker" "inspect" "1883d76224dab94cb6f5b15663250337ef8c22bf7e5bd17a6dc416ce587a2361", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1883d76224dab94cb6f5b15663250337ef8c22bf7e5bd17a6dc416ce587a2361", kill_on_drop: false }`
[INFO] [stdout] 1883d76224dab94cb6f5b15663250337ef8c22bf7e5bd17a6dc416ce587a2361
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ff34b919075f35a1787659e9c448a34b06bab8de" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 2b2b1ea026f4aa1f88c989715d25c54662bd849aef1ebf03e9e26c18dde4ae56
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "2b2b1ea026f4aa1f88c989715d25c54662bd849aef1ebf03e9e26c18dde4ae56", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/conversion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GenericImage`, `Pixel`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use image::{GenericImage, ImageBuffer, Primitive, Pixel, LumaA};
[INFO] [stdout]   |             ^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |         if (bytes_needed == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 |         if (bytes_read == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout] 175 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |         if (self.initialized == false) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:378:20
[INFO] [stdout]     |
[INFO] [stdout] 378 |                 if (self.frequency.len() < symbol) {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]   --> src/awsmimg/formats/agb.rs:84:62
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]    |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:105:13
[INFO] [stdout]     |
[INFO] [stdout] 105 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `width`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:157:62
[INFO] [stdout]     |
[INFO] [stdout] 157 |     fn encode_indexes<P: Primitive>(&mut self, data: Vec<P>, width: u32, _height: u32) -> io::Result<()> {
[INFO] [stdout]     |                                                              ^^^^^ help: if this is intentional, prefix it with an underscore: `_width`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/awsmimg/formats/agb.rs:178:13
[INFO] [stdout]     |
[INFO] [stdout] 178 |         for i in 0..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `readbytes2`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:94:13
[INFO] [stdout]    |
[INFO] [stdout] 94 |         let readbytes2 = self.r.read(&mut rawtree.get_mut(0..treesize).unwrap())?;
[INFO] [stdout]    |             ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readbytes2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `bytes_read` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:150:17
[INFO] [stdout]     |
[INFO] [stdout] 150 |         let mut bytes_read = 0;
[INFO] [stdout]     |                 ^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:300:44
[INFO] [stdout]     |
[INFO] [stdout] 300 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:301:42
[INFO] [stdout]     |
[INFO] [stdout] 301 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:304:44
[INFO] [stdout]     |
[INFO] [stdout] 304 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:305:42
[INFO] [stdout]     |
[INFO] [stdout] 305 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:319:44
[INFO] [stdout]     |
[INFO] [stdout] 319 |                     AGBHuffmanNode::Branch(j) => 0x80,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:320:42
[INFO] [stdout]     |
[INFO] [stdout] 320 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:323:44
[INFO] [stdout]     |
[INFO] [stdout] 323 |                     AGBHuffmanNode::Branch(j) => 0x40,
[INFO] [stdout]     |                                            ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:324:42
[INFO] [stdout]     |
[INFO] [stdout] 324 |                     AGBHuffmanNode::Leaf(j) => 0x00,
[INFO] [stdout]     |                                          ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `lastnode` is assigned to, but never used
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:402:17
[INFO] [stdout]     |
[INFO] [stdout] 402 |         let mut lastnode = 0;
[INFO] [stdout]     |                 ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_lastnode` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `lastnode` is never read
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:431:21
[INFO] [stdout]     |
[INFO] [stdout] 431 |                     lastnode = newpos;
[INFO] [stdout]     |                     ^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 78 |     let mut iw;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/awsmimg/conversion.rs:79:9
[INFO] [stdout]    |
[INFO] [stdout] 79 |     let mut ih;
[INFO] [stdout]    |         ----^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:110:13
[INFO] [stdout]     |
[INFO] [stdout] 110 |         let mut lnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:111:13
[INFO] [stdout]     |
[INFO] [stdout] 111 |         let mut rnode : AGBHuffmanNode;
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]   --> src/awsmimg/compression/agb.rs:48:8
[INFO] [stdout]    |
[INFO] [stdout] 48 |     fn new(r: &'a mut R) -> AGBHuffmanDecompressor<'a, R> {
[INFO] [stdout]    |        ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:280:12
[INFO] [stdout]     |
[INFO] [stdout] 280 |     pub fn new(w: &'a mut W, bits_per_symbol: u8) -> AGBHuffmanCompressor<'a, W> {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `serialize_huffman_tree`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:292:8
[INFO] [stdout]     |
[INFO] [stdout] 292 |     fn serialize_huffman_tree(&self, tree: &AGBHuffmanTree) -> Vec<u8> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function is never used: `write_huffman_header`
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:339:8
[INFO] [stdout]     |
[INFO] [stdout] 339 |     fn write_huffman_header(&mut self, rootnode: usize) -> io::Result<()> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 33 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling awsmimg v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/conversion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GenericImage`, `Pixel`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use image::{GenericImage, ImageBuffer, Primitive, Pixel, LumaA};
[INFO] [stdout]   |             ^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |         if (bytes_needed == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 |         if (bytes_read == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout] 175 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |         if (self.initialized == false) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:378:20
[INFO] [stdout]     |
[INFO] [stdout] 378 |                 if (self.frequency.len() < symbol) {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/conversion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GenericImage`, `Pixel`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use image::{GenericImage, ImageBuffer, Primitive, Pixel, LumaA};
[INFO] [stdout]   |             ^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |         if (bytes_needed == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 |         if (bytes_read == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout] 175 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |         if (self.initialized == false) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:378:20
[INFO] [stdout]     |
[INFO] [stdout] 378 |                 if (self.frequency.len() < symbol) {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/conversion.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Div`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Div;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GenericImage`, `Pixel`
[INFO] [stdout]  --> src/awsmimg/decoder.rs:5:13
[INFO] [stdout]   |
[INFO] [stdout] 5 | use image::{GenericImage, ImageBuffer, Primitive, Pixel, LumaA};
[INFO] [stdout]   |             ^^^^^^^^^^^^                          ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:152:12
[INFO] [stdout]     |
[INFO] [stdout] 152 |         if (bytes_needed == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:158:12
[INFO] [stdout]     |
[INFO] [stdout] 158 |         if (bytes_read == 0) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:175:12
[INFO] [stdout]     |
[INFO] [stdout] 175 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:180:12
[INFO] [stdout]     |
[INFO] [stdout] 180 |         if (self.bitbuffer_len < 1) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:194:12
[INFO] [stdout]     |
[INFO] [stdout] 194 |         if (self.initialized == false) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]    --> src/awsmimg/compression/agb.rs:378:20
[INFO] [stdout]     |
[INFO] [stdout] 378 |                 if (self.frequency.len() < symbol) {
[INFO] [stdout]     |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `StoreFalse`, `StoreTrue`
[INFO] [stdout]  --> src/decode.rs:7:39
[INFO] [stdout]   |
[INFO] [stdout] 7 | use argparse::{ArgumentParser, Store, StoreFalse, StoreTrue};
[INFO] [stdout]   |                                       ^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `interpret_direct_format_name`
[INFO] [stdout]   --> src/decode.rs:12:55
[INFO] [stdout]    |
[INFO] [stdout] 12 | use awsmimg::formats::{interpret_indexed_format_name, interpret_direct_format_name};
[INFO] [stdout]    |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/awsmimg/conversion.rs:165:13
[INFO] [stdout]     |
[INFO] [stdout] 165 |         for (_, _, pixel) in test_output.pixels() {
[INFO] [stdout]     |             ^^^^^^^^^^^^^    -------------------- this expression has type `&LumaA<u8>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected struct `LumaA`, found tuple
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `LumaA<u8>`
[INFO] [stdout]                 found tuple `(_, _, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/awsmimg/conversion.rs:165:13
[INFO] [stdout]     |
[INFO] [stdout] 165 |         for (_, _, pixel) in test_output.pixels() {
[INFO] [stdout]     |             ^^^^^^^^^^^^^    -------------------- this expression has type `&LumaA<u8>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected struct `LumaA`, found tuple
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `LumaA<u8>`
[INFO] [stdout]                 found tuple `(_, _, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/awsmimg/conversion.rs:165:13
[INFO] [stdout]     |
[INFO] [stdout] 165 |         for (_, _, pixel) in test_output.pixels() {
[INFO] [stdout]     |             ^^^^^^^^^^^^^    -------------------- this expression has type `&LumaA<u8>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected struct `LumaA`, found tuple
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `LumaA<u8>`
[INFO] [stdout]                 found tuple `(_, _, _)`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `GenericImage`
[INFO] [stdout]    --> src/awsmimg/conversion.rs:135:17
[INFO] [stdout]     |
[INFO] [stdout] 135 |     use image::{GenericImage, Pixel, ImageBuffer, LumaA};
[INFO] [stdout]     |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 10 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `awsmimg`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused import: `GenericImage`
[INFO] [stdout]    --> src/awsmimg/conversion.rs:135:17
[INFO] [stdout]     |
[INFO] [stdout] 135 |     use image::{GenericImage, Pixel, ImageBuffer, LumaA};
[INFO] [stdout]     |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `GenericImage`
[INFO] [stdout]    --> src/awsmimg/conversion.rs:135:17
[INFO] [stdout]     |
[INFO] [stdout] 135 |     use image::{GenericImage, Pixel, ImageBuffer, LumaA};
[INFO] [stdout]     |                 ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 12 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 10 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "2b2b1ea026f4aa1f88c989715d25c54662bd849aef1ebf03e9e26c18dde4ae56", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "2b2b1ea026f4aa1f88c989715d25c54662bd849aef1ebf03e9e26c18dde4ae56", kill_on_drop: false }`
[INFO] [stdout] 2b2b1ea026f4aa1f88c989715d25c54662bd849aef1ebf03e9e26c18dde4ae56
